import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/media/add',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: 'api/media/update',
    method: 'post',
    data: data
  })
}


export function del(id) {
  return request({
    url: 'api/media/del/' + id,
    method: 'delete'
  })
}
